home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / c / tcclib.exe / SCRDOWN.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-07-18  |  358 b   |  19 lines

  1. #include <dos.h>
  2.  
  3. extern unsigned char A_NORMAL;
  4. void TcclibInitialize( void );
  5.  
  6. void ScrollDown( int x, int y, int xx, int yy, int n )
  7. {
  8.     union REGS regs;
  9.  
  10.     TcclibInitialize();
  11.  
  12.     regs.x.cx = ( --y << 8 ) + --x;
  13.     regs.x.dx = ( --yy << 8 ) + --xx;
  14.     regs.x.ax = n % 256;
  15.     regs.h.ah = 7;
  16.     regs.h.bh = A_NORMAL;
  17.     int86( 0x10, ®s, ®s );
  18. }
  19.